<!--
*@description 
*@fileName uploadRemind.vue
*@author yao
*@date 2024/12/27 09:52:55
!-->
<template>
  <div>
    <el-dialog
      title="上传提醒"
      :visible.sync="visible"
      width="30%"
      :before-close="handleClose">
      <span>
        {{ info }}
      </span>
      <span slot="footer" class="dialog-footer">
        <el-button type="primary" @click="handleSubmit" size="mini"
          >确 定</el-button
        >
      </span>
    </el-dialog>
  </div>
</template>

<script>
export default {
  // 组件传参
  props: {
    visible: {
        type: Boolean,
        default: false
    },
    info: {
        type: String,
        default: '提示'
    }
  },

  data() {
    return {};
  },

  // 组件注册
  components: {},

  // 数据监听
  watch: {},

  // 计算属性
  compute: {},

  mounted() {},

  // 方法实现
  methods: {
    handleClose() {
        this.$emit('close')
        
    },
    handleSubmit() {
        this.$emit('submit')
    }
  },
};
</script>

<style lang="scss" scoped></style>
